import {types} from 'mobx-state-tree';

const AddressType = types.union(types.string, types.null);

const UserModel = types.model({
    id: types.number,
    name: types.string,
    age: types.number,
    address: AddressType, // 默认为空字符串
});

export default UserModel;
